import request from '@/utils/request'

//分片上传--------------
export function Fupload(data) {
  return request({
    url: '/gscloud_biz/file/upload',
    method: 'post',
    data
  })
}

export function Fcheck(data) {
  return request({
    url: '/gscloud_biz/file/check',
    method: 'get',
    params:data
  })
}

export function Fmerge(pageParam) {
  return request({
    url: '/gscloud_biz/file/merge',
    method: 'get',
    params: pageParam
  })
}
//分片上传--------------

export function shopUserInfo() {
  return request({
    url: '/gscloud_multishop/m/shop_user/info',
    method: 'get'
  })
}

export function page(pageParam) {
  return request({
    url: '/gscloud_multishop/m/shop_user/page',
    method: 'get',
    params: pageParam
  })
}

//移动端用户
export function gscloud_user(pageParam) {
  return request({
    url: '/gscloud_user/m/user/page',
    method: 'get',
    params: pageParam
  })
}
//移动端用户 作品列表
export function zplist(data) {
  return request({
    url: '/gscloud_user/user/userWork/page',
    method: 'get',
    params: data
  })
}
// 上传作品文件接口 /gscloud biz/oss/multi_upload_minio
export function upload_minio(data) {
  return request({
    url: '/gscloud_biz/oss/multi_upload_minio',
    method: 'post',
    data
  })
}

// 修改用户作品表
export function zpupdate(data) {
  return request({
    url: '/gscloud_user/user/userWork/update',
    method: 'put',
    data
  })
}

// 作品分类接口
export function zpflei(data) {
  return request({
    url: '/gscloud_user/user/userWorkCategory/page',
    method: 'get',
    params: data
  })
}
// 新增用户作品表
export function savezp(data) {
  return request({
    url: '/gscloud_user/user/userWork/save',
    method: 'post',
    data
  })
}



export function get(shopUserId) {
  return request({
    url: '/gscloud_multishop/m/shop_user',
    method: 'get',
    params: {
      shopUserId
    }
  })
}

export function save(data) {
  return request({
    url: '/gscloud_multishop/m/shop_user',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/gscloud_multishop/m/shop_user',
    method: 'put',
    data
  })
}

export function deleteById(shopUserId) {
  return request({
    url: '/gscloud_multishop/m/shop_user',
    method: 'delete',
    params: {
      shopUserId
    }
  })
}
